package com.api.shopapi.service.impl;

import com.api.shopapi.entity.NursingSchedulingNoon;
import com.api.shopapi.mapper.NursingSchedulingNoonMapper;
import com.api.shopapi.service.NursingSchedulingNoonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("NursingSchedulingNoonServiceImplOne")
public class NursingSchedulingNoonServiceImpl implements NursingSchedulingNoonService {
    @Autowired
    private NursingSchedulingNoonMapper nursingSchedulingNoonMapper;


    @Override
    public int insert(NursingSchedulingNoon nursingSchedulingNoon) {
        return nursingSchedulingNoonMapper.insert(nursingSchedulingNoon);
    }

    @Override
    public int updateByNursingSchedulingNoonCode(NursingSchedulingNoon nursingSchedulingNoon) {
        return nursingSchedulingNoonMapper.updateByNursingSchedulingNoonCode(nursingSchedulingNoon);
    }

    @Override
    public int deleteByNursingSchedulingNoonCode(String nursingSchedulingNoonCode) {
        return nursingSchedulingNoonMapper.deleteByNursingSchedulingNoonCode(nursingSchedulingNoonCode);
    }

    @Override
    public NursingSchedulingNoon getByNursingSchedulingNoonCode(String nursingSchedulingNoonCode) {
        return nursingSchedulingNoonMapper.getByNursingSchedulingNoonCode(nursingSchedulingNoonCode);
    }

    @Override
    public NursingSchedulingNoon getByNursingSchedulingCode(String nursingSchedulingCode) {
        return nursingSchedulingNoonMapper.getByNursingSchedulingCode(nursingSchedulingCode);
    }
}
